﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SupportLibrary.Message
{
    //Return message from resource file
    public static class Message
    {

        public static string ReplaceMessage(string message,ByKey key, string keyvalue)
        {
           
            return message.Replace(key.GetKey, keyvalue);
        }

    }

    public  class ByKey
    {

       private static string testcase = "#testcase#";
       private static string teststep = "#teststep#";
       private static string number = "#number#";

       private string mKey = string.Empty;
       public ByKey(string key)
       {
          mKey = key;
       }

       public static ByKey ByTestCase()
       {
           return new ByKey(testcase);
       }

       public static ByKey ByTestStep()
       {
           return new ByKey(teststep);
       }

       public static ByKey ByNumber()
       {
           return new ByKey(number);
       }

       public string GetKey {
           get { return mKey; }
           set { mKey = value; }
       }
      


    }
}
